class EliminarCompromisoController < ApplicationController

  layout 'seguimiento_layout'

  def eliminar
    if(params[:id] != nil && params[:id] != "")
      @compromiso_a_eliminar = Compromiso.find(params[:id])
      @hay_id = params[:id]
    else
      @compromisos = Compromiso.all
      @hay_id = "No"
    end
  end

  def resultado
    @compromiso = Compromiso.find(params[:id_compromiso])
    @compromiso.delete
  end
end
